package com.ry.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.ry.bean.People;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface IPeopleMapper {

//	@Select("select id,name,age,remark,sort,is_valid as isValid, created_on as createdOn, modified_on as modifiedOn from people")
	public List<People> list(People people);

//	@Insert("insert into people (name,age,sort,created_on) values (#{name},#{age},#{sort},#{createdOn}) ")
	public int add(People people);

	@Select("select * from people")
	public List<People> listAll();

}
